package com.example.warehousesystem_basedata_service.serviceImpl;

import com.example.warehousesystem_basedata_service.mapper.SupplierMapper;
import com.example.warehousesystem_common.pojo.vo.SupplierListVO;
import com.example.warehousesystem_common.service.ISupplierService;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@DubboService
@Slf4j
public class SupplierServiceImpl implements ISupplierService {

    @Autowired
    private SupplierMapper mapper;


    @Override
    public List<SupplierListVO> list() {
        log.debug("开始处理【查询供应商列表】的业务，无参数");
        List<SupplierListVO> list = mapper.list();
        log.debug("即将返回查询结果：{}", list);
        return list;
    }

    @Override
    public void setEnable(Long id) {
       // updateEnableById(id, true);
    }

    @Override
    public void setDisable(Long id) {
       // updateEnableById(id, false);
    }
}
